class Animal:
    pass
class dog(Animal):
    pass
class Cat(Animal):
    pass


def animal(args):
    pass


print(isinstance(animal,Animal))
print(isinstance(animal,Cat))
print(isinstance(animal,object))

print(isinstance(dog,Animal))
print(isinstance(dog,Cat))
print(isinstance(dog,dog))
print(isinstance(dog,object))

print(isinstance(Animal,Animal))